﻿using System;
using System.Runtime.InteropServices;

namespace Vtron.LEDCorrective.Domain.LEDSender
{
    /// <summary>
    /// 测试图片属性
    /// </summary>
    /// <remarks>
    /// #define	SCP_DSC_LEN		32
    /// struct _scp_bgpic_t
    /// {
    /// 	u_int8_t		id;					/*图片编号*/
    /// 	int8_t		dsc[SCP_DSC_LEN];		/*图片描述信息*/
    /// }PACKED;
    /// typedef _scp_bgpic_t
    /// </remarks>
    [Serializable]
    [StructLayout(LayoutKind.Sequential, Pack = 1)]
    public struct SCP_BGPIC_T
    {
        /// <summary>
        /// 图片编号
        /// </summary>
        public byte id;

        /// <summary>
        /// 图片描述信息
        /// </summary>
        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 32)]
        public byte[] dsc;
    }
}
